package com.java.dao;

import com.java.doMain.user;

import java.util.List;

/**
 * @Author xyd
 * @Date 2021/12/6 13:53
 * @Version 1.0
 */
public interface userDao {
    //登录
    user queryAdminByUsernameAndPassword(String name, String password);

    //注册时重复查询
    user selectByUsername(String username);
    //注册
    int register(String username,String password,String sex,String tel,String b1);

    List<user> selectAll();

    user selectByUserName(String username);

    //修改购物车
    int updateUserB2(int userID,String b2);

    //修改余额
    int updateMoney(int userID,double balance);
}
